package lesson2;

public class ForLoopExample2 {
	public static void main(String[] args) {
		
		int x = 6;
		
		int fact = 1;
		
		for(int i = 1; i <= x; i++)
		{
			fact = fact*i;
		}
		System.out.println(fact);
	}
}
